package com.ruoyi.job.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.business.waterManagement.WrStatvolD;
import com.ruoyi.common.core.domain.business.waterManagement.WrStatvolH;
import org.apache.ibatis.annotations.Param;


import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * 测站日水量Service接口
 * 
 * @author hwd
 * @date 2023-02-20
 */
public interface IWrStatvolDService  extends IService<WrStatvolD>
{
    /**
     * 查询测站日水量
     * 
     * @param statCd 测站日水量主键
     * @return 测站日水量
     */
    public WrStatvolD selectWrStatvolDByStatCd(String statCd);

    /**
     * 查询测站日水量列表
     * 
     * @param wrStatvolD 测站日水量
     * @return 测站日水量集合
     */
    public List<WrStatvolD> selectWrStatvolDList(WrStatvolD wrStatvolD);

    /**
     * 新增测站日水量
     * 
     * @param wrStatvolD 测站日水量
     * @return 结果
     */
    public int insertWrStatvolD(WrStatvolD wrStatvolD);

    /**
     * 修改测站日水量
     * 
     * @param wrStatvolD 测站日水量
     * @return 结果
     */
    public int updateWrStatvolD(WrStatvolD wrStatvolD);

    /**
     * 批量删除测站日水量
     * 
     * @param statCds 需要删除的测站日水量主键集合
     * @return 结果
     */
    public int deleteWrStatvolDByStatCds(String[] statCds);

    /**
     * 删除测站日水量信息
     * 
     * @param statCd 测站日水量主键
     * @return 结果
     */
    public int deleteWrStatvolDByStatCd(String statCd);

    /**
     * 按日统计月水量数据
     * @param
     * @return
     */
    WrStatvolD countMonthByWrStatvolD(String statCd, Date day);

    /**
     * 插入或更新日水量
     * @param wrStatvolH
     */
    void insertOrUpdateWrStatvolD(WrStatvolH wrStatvolH);


    /**
     * 按日统计水管机构水量数据
     * @param
     * @return
     */
    WrStatvolD countWiOrgVolDByWrStatvolD(String statCd,Date day);
}
